bin_PROGRAMS = despotify
despotify_SOURCES = commands.c event.c main.c session.c ui.c ui_footer.c ui_help.c ui_log.c ui_sidebar.c ui_splash.c ui_tracklist.c
AM_CFLAGS = -Wall -Wextra -ggdb -std=gnu99 -I../../lib/ -Wno-pointer-sign
AM_LDFLAGS = -ldespotify ../../lib/libdespotify.la

if OSX
despotify_SOURCES += coreaudio.c
AM_LDFLAGS += -L/usr/lib -lncurses -framework CoreAudio
endif

if LIBAO
despotify_SOURCES += libao.c
AM_LDFLAGS += -lao
endif
